import Main from '../main/index'
import {
  isMobile
} from '@/assets/js/utils'

const index = () =>
  import(/* webpackChunkName: "index" */ '@/components/home/index')

const home = [{
  path: '/',
  redirect: {
    name: 'index'
  }
},
{
  path: '/index',
  component: index,
  name: 'index',
  meta: {
    title: '首页'
  },
  redirect: {
    name: isMobile() ? 'mobileIndex' : 'overview'
  },
  children: [...Main]
}
]

export default home
